package JD_UNMOD;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

import static sun.misc.PostVMInitHook.run;

public class Example_02 {
    public static void main(String[] args) {
        Collection<String> argsCol = createCollection(args);
        for (final Iterator<String> iterator = argsCol.iterator(); iterator.hasNext();) {
            final String arg = iterator.next();
            if ("version".equals(arg)) {
                printVersion();
                iterator.remove();
            }
        }
        run();
    }

    private static void printVersion() {

    }

    public static Collection<String> createCollection(final String[] array) {
        final List<String> list = new ArrayList<String>();
        for (final String str : array) {
            list.add(str);
        }
        return list;
    }
}
